<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:f="http://java.sun.com/jsf/core"  
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

    <h:form>  
        <p:growl showDetail="false" id="mgs"/>
        <h:panelGrid columns="2">  
            <h:outputLabel for="senhaAtual" value="Senha Atual" />  
            <p:password id="senhaAtual" required="true" requiredMessage="Informe a senha atual!" label="username" feedback="false" value="#{alteraSenha.senhaAtual}"/>  
            <h:outputLabel for="NovaSenha" value="Nova Senha" />  
            <p:password id="NovaSenha" required="true" requiredMessage="Informe a nova senha!" label="novaSenha" feedback="false" value="#{alteraSenha.novaSenha}"/>  
            <h:outputLabel for="RepeteSenha" value="Repete Senha" />  
            <p:password id="RepeteSenha" required="true" requiredMessage="Repita a senha!" label="password" feedback="false" value="#{alteraSenha.repeteSenha}"/>  
            <p:commandButton id="loginButton" value="Alterar" action="#{alteraSenha.alteraSenha()}" 
                             update="mgs,@form" onclick="statusDialog.show();" onsuccess="statusDialog.hide();"/>
            <p:commandButton value="Cancelar" onclick="dlgSenha.hide()"/>
        </h:panelGrid>  
    </h:form>
</html>